package com.jml.account.activemq.service.impl;

import com.jml.account.activemq.service.MqSendMessageService;
import org.springframework.stereotype.Service;

import org.springframework.jms.core.JmsTemplate;
import org.springframework.jms.core.MessageCreator;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.Session;


@Service
public class MqSendMessageServiceImpl implements MqSendMessageService {


    /*@Resource(name = "jmsTemplate")
    private JmsTemplate jmsTemplate;


    public void sendMessageRepayment(final String msg) {
        jmsTemplate.send("mqQueue", new MessageCreator() {
            public Message createMessage(Session session) throws JMSException {
                return session.createTextMessage(msg);
            }
        });

    }*/


}
